package com.gict.antifraudback.service;

import com.gict.antifraudback.entity.Article;
import com.gict.antifraudback.entity.Spider;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;

/**
* @author XIE
* @description 针对表【spider(爬虫规则)】的数据库操作Service
* @createDate 2023-12-06 17:14:37
*/
public interface SpiderService extends IService<Spider> {

    /**
     * 抓取文章
     * @param spider 抓取规则
     * @param url 抓取的链接
     * @return 抓取到的文章
     */
    Article spiderArticle(Spider spider, String url) throws IOException;

}
